package com.olive.config;

import org.springframework.security.access.AccessDeniedException;

public class CustomAccessDeniedException extends AccessDeniedException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3370449286454618201L;

	private int code;
	
	public CustomAccessDeniedException(int code, String msg) {
		super(msg);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
}